//
//  NSMutableArray+WeakReference.h
//  MFWSdk
//
//  Created by Song Xiaofeng on 13-7-24.
//  Copyright (c) 2013年 Mafengwo Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSMutableArray (WeakReference)

- (void)addWeakObject:(id)anObject;
- (void)insertWeakObject:(id)anObject atIndex:(NSUInteger)index;
- (void)replaceWeakObjectAtIndex:(NSUInteger)index withWeakObject:(id)anObject;
- (void)removeWeakObject:(id)anObject;

- (id)lastWeakObject;
- (id)weakObjectAtIndex:(NSUInteger)index;

- (BOOL)containsWeakObject:(id)anObject;

- (NSUInteger)aliveCount;
@end